package com.zl.feign;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import com.select.pojo.Courses;
import com.zl.feign.impl.FeignHystrix;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Author ：ZhangLei
 * @Data ：2021/5/26 9:48
 * @Description ：
 */
@FeignClient(value = "teacher", fallback = FeignHystrix.class)
public interface TeaFeign {

    @GetMapping("/findAll")
    @ResponseBody
    List<Courses> findOne(String teaAccount);
}
